package com.hhss.qishi.service.system.impl;

import com.hhss.qishi.entity.system.Role;
import com.hhss.qishi.mapper.system.RoleMapper;
import com.hhss.qishi.service.impl.CommonServiceImpl;
import com.hhss.qishi.service.system.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;

@Service
public class RoleServiceImpl extends CommonServiceImpl<Role, Serializable> implements RoleService {
	
	@Autowired
	private RoleMapper roleMapper;
	
	public List<Role> getList(Role role){
		return roleMapper.getList(role);
	}

	@Override
	public Role getPermissionRoleById(Role role) {
		return roleMapper.getPermissionRoleById(role);
	}
}